package com.campus.service.Impl;

import com.campus.domain.Dto.CourseCreateDto;
import com.campus.mapper.CourseMapper;
import com.campus.service.ICourseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class CourseServiceImpl implements ICourseService {

    @Autowired
    private CourseMapper courseMapper;

    @Override
    public Integer addCourse(CourseCreateDto courseCreateDto) {
        return courseMapper.addCourse(courseCreateDto);
    }
}
